import https from '@/plugins/luch-request_0.0.7/request'

/**
 * 工地相关接口
 * @param {*} data
 */
// 方式
export const getFitmentWay = data => https.get('/apihkds/api/site/getDecorateWay', data)// 风格
// 风格
export const getFitmentStyle = data => https.get('/apihkds/api/site/getDecorateStyle', data)
// 详情
export const getFitmentDetail = data => https.get('/apihkds/api/site/getSiteDetail', data)
// 直播
export const getSiteReport = data => https.get('/apihkds/api/site/getSiteReport', data)
// 团队
export const getSiteTeam = data => https.get('/apihkds/api/site/getSiteTeam', data)
// 修改工地
export const modifySite = data => https.post('/apihkds/api/site/modifySite', data)
// 修改封面图
export const modifySiteCover = data => https.get('/apihkds/api/site/modifySiteCover', data)
// 删除工地
export const delSite = data => https.get('/apihkds/api/site/delSite', data)
// 点赞
export const praiseReport = data => https.get('/apihkds/api/site/praiseReport', data)
// 取消点赞
export const cancelPraiseReport = data => https.get('/apihkds/api/site/cancelPraiseReport', data)
// 上架
export const putOn = data => https.get('/apihkds/api/site/putOn', data)
// 下架
export const putOff = data => https.get('/apihkds/api/site/putOff', data)
// 更新工地
export const updateSite = params => https.post('/apihkds/api/site/addReport', params)
// 模板话术列表
export const getTemplateSpeechList = params => https.get('/apihkds/api/site/getDefaultStageFast', params)
// 添加团队
export const addSiteTeam = params => https.post('/apihkds/api/site/addSiteTeam', params, {}, { hideError: true })
// 更新工地 --> 工地阶段列表
export const getStageList = params => https.get('/apihkds/api/site/getGroupStage', params)
// 模板话术详情
export const getStageDetail = params => https.get('/apihkds/api/site/getStageFastList', params)
// 添加模板话术
export const addTemplateSpeech = params => https.post('/apihkds/api/site/addFast', params)
// 更新模板话术
export const editTemplateSpeech = params => https.post('/apihkds/api/site/modifyFast', params)
// 删除模板话术
export const delTemplateSpeech = params => https.get('/apihkds/api/site/delFast', params)
// 获取所有模板和阶段列表
export const getAllStageTemplate = params => https.get('/apihkds/api/site/getAllStageList', params)
// 获取商家默认的模板和阶段列表
export const getDefaultStageTemplate = params => https.get('/apihkds/api/site/getUserDefaultStageList', params)
// 设置默认的阶段模板
export const setDefaultStageTemplate = params => https.get('/apihkds/api/site/setDefaultStage', params)
// 新建阶段模板
export const addStageTemplate = params => https.post('/apihkds/api/site/generateGroupStage', params)
// 修改阶段模板
export const editStageTemplate = params => https.post('/apihkds/api/site/modifyGroupStage', params)
// 删除阶段模板
export const delStageTemplate = params => https.get('/apihkds/api/site/delGroupStage', params)
// 修改阶段名称
export const editStageName = params => https.get('/apihkds/api/site/modifyStage', params)
// 修改工地阶段
export const editStageSiteId = params => https.get('/apihkds/api/site/modifySiteStage', params)
// 添加工地
export const addSite = params => https.post('/apihkds/api/site/add', params)
// 编辑直播
export const modifyReport = params => https.post('/apihkds/api/site/modifyReport', params)
export const getReportInfo = params => https.get('/apihkds/api/site/getReportInfo', params)
// 删除直播
export const delReport = params => https.get('/apihkds/api/site/delReport', params)
// 置顶直播
export const topReport = params => https.get('/apihkds/api/site/topReport', params)
// 工地点赞
export const praiseSite = params => https.get('/apihkds/api/site/praiseSite', params)
export const cancelPraiseSite = params => https.get('/apihkds/api/site/cancelPraiseSite', params)
// 小区列表
export const getCommunityList = params => https.get('/apihkds/api/site/getCommunityData', params)
// 添加小区
export const addCommunity = params => https.post('/apihkds/api/site/addCommunity', params)
// 设置并获取指定模板
export const setStageTemplate = params => https.get('/apihkds/api/site/setGetGroup', params)
